Skip to content

refactor: remove duplicate tests from api package and add missing CRI-O tests#3786

Merged
dims merged 1 commit intogoogle:masterfrom
dims:consolidate-integration-tests
Dec 13, 2025
Merged

refactor: remove duplicate tests from api package and add missing CRI-O tests#3786
dims merged 1 commit intogoogle:masterfrom
dims:consolidate-integration-tests

Conversation

@dims
Copy link
Collaborator

@dims dims commented Dec 13, 2025

  • Remove attributes_test.go, machine_test.go, machinestats_test.go from api package (now in common package)
  • Add TestGetAllCrioContainers to match TestGetAllDockerContainers
  • Add TestCrioHealthState (skipped - Docker health checks not supported by CRI-O)
  • Update sanityCheck to validate container aliases

Test coverage is now consistent between Docker and CRI-O:

  • Docker: api.test (12 tests) + common.test (4 tests)
  • CRI-O: crio.test (12 tests) + common.test (4 tests)

…-O tests

- Remove attributes_test.go, machine_test.go, machinestats_test.go from
  api package (now in common package)
- Add TestGetAllCrioContainers to match TestGetAllDockerContainers
- Add TestCrioHealthState (skipped - Docker health checks not supported by CRI-O)
- Update sanityCheck to validate container aliases

Test coverage is now consistent between Docker and CRI-O:
- Docker: api.test (12 tests) + common.test (4 tests)
- CRI-O: crio.test (12 tests) + common.test (4 tests)

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@dims dims merged commit aa2c0c0 into google:master Dec 13, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant